import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'

export class FlowBoardData {
  static ApiPropertyEnum = {}

  @ApiProperty({ description: 'ID', type: Number })
  id: number

  @ApiProperty({ description: '标题', type: String })
  label: string

  @ApiPropertyOptional({ description: '数据', type: String })
  data?: string

  @ApiProperty({ description: '创建时间', type: Date })
  createTime: Date

  @ApiProperty({ description: '所属平台', type: String })
  platform: string

  @ApiPropertyOptional({ description: '所属平台下的项目', type: String })
  project?: string

  @ApiProperty({ description: '数据的hash', type: String })
  dataHash: string
}
